package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author zhangyy
 * @since 2020-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_operate_record")
public class OperateRecordDo extends Model<OperateRecordDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 对应表的主键
     */
    @TableField("third_id")
    private Long thirdId;

    /**
     * 操作内容
     */
    @TableField("content")
    private String content;

    /**
     * 需要 替换的内容 !& 隔开
     */
    @TableField("content_value")
    private String contentValue;

    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 1：商品 2：入库单 3：出库单 4：亚马逊订单 5：乐天订单 6:fba转运
     */
    @TableField("type")
    private Integer type;

    /**
     * 操作时间
     */
    @TableField("operate_time")
    private Date operateTime;

    /**
     * 操作人员id
     */
    @TableField("operate_by")
    private Long operateBy;

    /**
     * 逻辑删除
     */
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
